<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      [v-clock]{
       display: none;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <p v-text="text"></p>
      <p v-html="text1"></p>
      <p v-pre>{{text2}}我是v-pre，我喜欢原生态</p>
      <!-- <p v-clock>{{text3}}</p> -->
      <p v-once>{{text4}}</p>
    </div>
    <script src="./js/vue.js"></script>
    <script>
      const vm = new Vue({
        data: {
          text: "我是v-text渲染出来的",
          text1: "我是危险的v-html渲染出来的",
          text2: "我是v-pre，我喜欢原生态",//不渲染
          text3:"text",
          text4:"我是v-once我只渲染一次"
        },
      });
      vm.$mount("#app");
    </script>
  </body>
</html>
